package com.jin.spirng_boot_learn.Request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;


import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class ClassRequest {

    String glade;

    Integer number;

    @Length(max=12)
    String location;

    @Valid
    List<StudentRequest> students;
}
